package com.hexapix.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: bgonzales
 * Date: Sep 30, 2011
 * Time: 11:25:43 PM
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/welcome")
public class WelcomeController
{
    @RequestMapping(method = RequestMethod.GET)
    public String welcome(Model model) {
        Date today = new Date();
        model.addAttribute("today", today);
        return "welcome";
    }

}
